<%@ Page Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true" CodeBehind="E_AutoComplete.aspx.cs" Inherits="ScottCateAjax2008.Lesson03.E_AutoComplete" Title="Auto Complete Textbox" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <h1>Warning!</h1>
    Web Service Signature (including paramter names) is hardcoded<br />
    public string[] GetCompletionList(string <b>prefixText</b>, int <b>count</b>)
    
    <br /><br /><br />
   
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    
    Enter City: <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    
    <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" 
        MinimumPrefixLength="1"
        CompletionInterval="500"
        TargetControlID="TextBox1" 
        ServicePath="~/Lesson03/E_AutoComplete.asmx"
        ServiceMethod="GetCompletionList"
        runat="server" />

</asp:Content>
